#ifndef DATA_BASE_H
#define DATA_BASE_H
 #include <mysql/mysql.h>
 #include <string.h>
 #include <stdio.h>
int get_id_and_isdir_by_name(MYSQL* conn, const char* name, int p_id, const char* user_name, int* out_id, int* out_is_dir);
int create_table(MYSQL *conn);
int get_user_root_id(MYSQL* conn, const char* user_name, int* root_id);
int get_name_by_id(MYSQL* conn, int id, char* name_out, int out_size);
MYSQL* connect_mysql();
#endif
